<?php
require_once("lib/nusoap.php");
$ns="http://jameel.homeip.net/";

$server = new soap_server();
$server->configureWSDL('GoogleMobileFileGenerator',$ns);
$server->wsdl->schemaTargetNamespace=$ns;

$server->register('SyncFileGenerator',
array('inpuT' => 'xsd:string'),
array('return' => 'xsd:string'),
$ns);

function SyncFileGenerator($Input){
$myFile = "/usr/share/CurrentWebService/test.vcf";
$fh = fopen($myFile, 'w+') or die("can't open file");
fwrite($fh,$Input );
fclose($fh);
return new soapval('return','xsd:string','test.vcf');
}

$server->service($HTTP_RAW_POST_DATA);
?>

